package com.demo;

import org.modelmapper.ModelMapper;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class BeanUtilsApplication {

    public static void main(String[] args) {
        SpringApplication.run(BeanUtilsApplication.class, args);
    }

    /**
     * 相当于new一个Bean
     * 也可以在@Configuration注解的类中配置个（相当于xml中new）
     * @return
     */
    @Bean
    public ModelMapper modelMapper() {
        return new ModelMapper();
    }

}
